/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SaveSessionPop.java
 *
 * Created on Mar 6, 2009, 9:42:59 PM
 */

package rehab.host.gui;

/**
 *
 * @author shahsant
 */
public class SaveSessionPop extends javax.swing.JFrame {

    /** Creates new form SaveSessionPop */
    public SaveSessionPop() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
//    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jButtonSaveLogYes = new javax.swing.JButton();
        jButtonSaveLogNo = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("Do you want to save current data log?");

        jButtonSaveLogYes.setText("Yes");
        jButtonSaveLogYes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSaveLogYesActionPerformed(evt);
            }
        });

        jButtonSaveLogNo.setText("No");
        jButtonSaveLogNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSaveLogNoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(92, 92, 92)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(116, 116, 116)
                        .addComponent(jButtonSaveLogYes)
                        .addGap(47, 47, 47)
                        .addComponent(jButtonSaveLogNo)))
                .addContainerGap(123, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jLabel1)
                .addGap(55, 55, 55)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSaveLogYes)
                    .addComponent(jButtonSaveLogNo))
                .addContainerGap(141, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonSaveLogYesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveLogYesActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonSaveLogYesActionPerformed

    private void jButtonSaveLogNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveLogNoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonSaveLogNoActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new SaveSessionPop().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonSaveLogNo;
    private javax.swing.JButton jButtonSaveLogYes;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

}
